new Vue({
    el: '#mainBody',
    data: function () {
        return {
        	goalURL: './blank.html',//数据上传dialog
        	iframeURL:'/ips-sp/namedFile!_view.action?resId=212297&isHideMiniBar=true&',
        };
    },
    created: function () {
    	//初始化全部数据类型
    	this.initBoUrl();
    },
    methods: {
    	initBoUrl:function(){
                var _this = this;
            	$.ajax({
                    url: '/forward/siteBOSP',
                    data:{},
                    type: 'post',
                    dataType: 'json',
                    success: function (res) {
                    	if (res.code=='1') {
                  	  		//goalURL = "http://128.232.6.93:8080/citic-speed-web/dashboard/page/bdfxbb/yxbdqk.jsp?sso=2D1CC716B34BA8D658CE54EA7A33E459&userid=d69f6d81359936589e24788c71aefa55&password=ebad48ab113984ba1913545643c9ab40";
                  	  		_this.goalURL = res.data.host+_this.iframeURL+res.data.urlPara;
                  	  	}
                    },
                    error: function (err) {
                        if(err.responseJSON.message=="session clean"){
                            errorMessage(_this.$message, '登陆已失效重新登陆!');
                            toLogin();
                            return;
                        }
                        errorMessage(_this.$message,err);
                    }
                });
    	}
    }
})

